<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script >
        console.log("aa");
        //编写一个javascript对象
        let user={
            name:"张三",
            age:18,
            sexy:"男"

        };
        console.log(user);
        //将js对象装换为json对象
        let json = JSON.stringify(user);
        console.log(json);
        //将json对象装换为js对象
        let object=JSON.parse(json);
        console.log(object);

    </script>
</head>
<body>
<h3>hello</h3>
</body>
</html>